<table class="list" width="100%">
  <tr>
    <th colspan="2" style="text-align:left;">
        첨부파일 
    </th>
  </tr>
<% for board_file in @board_files %>
  <tr>
    <td style="text-align:left;"><%= link_to board_file.file_name, :action => 'dn', :id => board_file %></td>
    <td style="text-align:right;"><%= link_to_remote '삭제 ', :update=>'file_form', :url => { :action => 'destroy', :id => board_file }, :confirm => 'Are you sure?', :post => true %></td>
  </tr>
  <% end %>
</table>
<%= link_to 'Previous page', { :page => @board_file_pages.current.previous } if @board_file_pages.current.previous %>
<%= link_to 'Next page', { :page => @board_file_pages.current.next } if @board_file_pages.current.next %> 
<br />

<div id="file_form">
</div>
<div class="nav">
<%= link_to_remote 'Upload File',:update=>'file_form',
			:url=> {:action=>"new"} %>
</div>

